<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="{:U('update')}" name="myfromSubmit" method="post" onsubmit="return validateCallback(this)">

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 订单编号 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="order[ref]"    datatype="/.+?$/,s8-16" errormsg="昵称至少8个字符,最多16个字符！" id="ref" class="rcol-xs-10 col-sm-5" value="{$order.ref}">
                                </div>

                            </div>

                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-10"> 渠道代码 </label>
                                <div class="col-sm-9">

                                    <select id="channel_code" name="order[channel_code]" class="rcol-xs-10 col-sm-5">
                                        <volist name="channel_code" id="val">
                                            <option value="{$val['code']}"
                                        <if condition="$val['code'] eq $order['channel_code']">selected="selected"
                                        </if>
                                        >{$val['code']}--{$val['name']}</option>
                                    </volist>
                                </select>

                                </div>
                            </div>
                        <div class="space-4"></div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label no-padding-right" for="form-field-10"> 贸易模式 </label>
                            <div class="col-sm-9">

                                <select id="trade_pattern" name="order[trade_pattern]" class="rcol-xs-10 col-sm-5">
                                    <volist name="tradeList" id="val">
                                        <option value="{$val['code']}"
                                        <if condition="$val['code'] eq $order['trade_pattern']">selected="selected"
                                        </if>
                                        >{$val['code']}--{$val['name']}</option>
                                    </volist>
                                </select>

                            </div>
                        </div>

                    
<!--                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 缩略图 </label>
                        <div class="col-sm-9">
                            <div class="col-xs-10 col-sm-5">{:UpImage1("pic_thumb",100,100,$goods['pic_thumb'])}</div>
                            <span class="help-inline col-xs-12 col-sm-7">
                                <span class="middle">仅支持jpg、gif、png、bmp、jpeg，且小于1MB。</span>
                            </span>
                        </div>
                    </div>-->
                    
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="date_order">订单时间</label>
                        <div class="col-xs-9 col-sm-9">
                            <div class="input-group col-xs-5">
                                <input class="form-control"  id="date_order" name="order[date_order]" value="<if condition="
                                       $order['date_order'] neq '' ">{$order['date_order']|date="Y-m-d",###}</if>"
                                type="text" data-date-format="dd-mm-yyyy" />
                                <span class="input-group-addon">
                                    <i class="ace-icon fa fa-calendar bigger-110"></i>
                                </span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 购买者 </label>
                        <div class="col-sm-9">
                            <input type="text" name="order[buyer]"   datatype="*" nullmsg="buyer不能为空" class="rcol-xs-10 col-sm-5" value="{$order.buyer}">
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 卖家 </label>
                        <div class="col-sm-9">
                            <input type="text" name="order[seller]"  datatype="*" nullmsg="卖家不能为空" class="rcol-xs-10 col-sm-5" value="{$order.seller}">
                        </div>
                    </div>


                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 销售价 </label>
                        <div class="col-sm-9">
                            <input type="text" name="arr[price]" id="price" datatype="*" nullmsg="销售价不能为空" class="rcol-xs-10 col-sm-5" value="{$goods.price}">
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 库存 </label>
                        <div class="col-sm-9">
                            <input type="number" name="arr[stock_num]" datatype="*" nullmsg="库存不能为空" class="rcol-xs-10 col-sm-5" value="{$goods.stock_num}">
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 重量 </label>
                        <div class="col-sm-9">
                            <input type="number" name="arr[weight]" id="weight" datatype="*" nullmsg="重量不能为空" class="rcol-xs-10 col-sm-5" value="{$goods.weight}">
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 商品关键词 </label>
                        <div class="col-sm-9">
                            <input type="text" name="arr[info_keywords]" datatype="*" nullmsg="商品关键词不能为空"  class="rcol-xs-10 col-sm-5" value="{$goods.info_keywords}">
                            <span class="help-inline col-xs-12 col-sm-7">
                                <span class="middle">商品关键词请以、隔开</span>
                            </span>
                        </div>

                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 原产国 </label>
                        <div class="col-sm-9">
                            <select id="made_in" name="arr[made_in]" class="rcol-xs-10 col-sm-5">
                                <foreach name="country" item="co" key="k">
                                    <option value="{$co['country_id']}"  <if condition="$goods.made_in eq $co['country_id']">selected="selected"</if>>{$co['chinese_name']}</option>
                                </foreach>
                            </select>
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 关税 </label>
                        <div class="col-sm-9">
                            <input type="text" name="arr[tax_gw]" datatype="*" nullmsg="关税不能为空"  class="rcol-xs-10 col-sm-5" value="{$goods.tax_gw}">
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 消费税 </label>
                        <div class="col-sm-9">
                            <input type="text" name="arr[tax_xf]" datatype="*" nullmsg="消费税不能为空" class="rcol-xs-10 col-sm-5" value="{$goods.tax_xf}">
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 增值税务 </label>
                        <div class="col-sm-9">
                            <input type="text" name="arr[tax_added]" datatype="*" nullmsg="增值税务不能为空" class="rcol-xs-10 col-sm-5" value="{$goods.tax_added}">
                        </div>
                    </div>
                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 贸易模式 </label>
                        <div class="col-sm-9">
                            <select id="trade_type" name="arr[trade_type]" class="rcol-xs-10 col-sm-5">
                                <foreach name="tradeList" item="tr" key="k">
                                    <option value="{$tr['code']}"  <if condition="$goods.trade_type eq $tr['code']">selected="selected"</if>>{$tr['name']}</option>
                                </foreach>
                            </select>
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 税号 </label>
                        <div class="col-sm-9">
                            <input type="text" name="arr[tax_no]" id="tax_no"  datatype="*" nullmsg="税号不能为空"  class="rcol-xs-10 col-sm-5" value="{$goods.tax_no}">
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> Pc端描述信息</label>
                        <div class="col-sm-9">
                            <textarea name="arr[info_pc]"  id="info_pc" placeholder="Pc端描述信息" class="col-xs-10 col-sm-5"
                                      rows="5">{$goods.info_pc}</textarea>
                            <span class="help-inline col-xs-12 col-sm-7">
                                <span class="middle"></span>
                            </span>
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 移动端描述信息</label>
                        <div class="col-sm-9">
                            <textarea name="arr[info_mobile]" id="info_mobile" placeholder="移动端描述信息" class="col-xs-10 col-sm-5"
                                      rows="5">{$goods.info_mobile}</textarea>
                            <span class="help-inline col-xs-12 col-sm-7">
                                <span class="middle"></span>
                            </span>
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 商品备注信息</label>
                        <div class="col-sm-9">
                            <textarea name="arr[info_notice]" id="info_notice" placeholder="商品备注信息" class="col-xs-10 col-sm-5"
                                      rows="5">{$goods.info_notice}</textarea>
                            <span class="help-inline col-xs-12 col-sm-7">
                                <span class="middle"></span>
                            </span>
                        </div>
                    </div>

                    <div class="space-4"></div>
                    <input name="id" value="{$goods.id}" type="hidden">
                    <div class="col-md-offset-2 col-md-9">
                        <button class="btn btn-info" type="submit">
                            <i class="icon-ok bigger-110"></i>
                            提交
                        </button>

                        &nbsp; &nbsp; &nbsp;
                        <button class="btn" type="reset">
                            <i class="icon-undo bigger-110"></i>
                            重置
                        </button>
                    </div>
                </form>
                <!-- PAGE CONTENT ENDS -->
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div>
</div><!-- /.main-content -->
<include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script src="__PUBLIC__/qwadmin/js/function.js"></script>
<script type="text/javascript">

                            $(function (){
                                $("#data_order").datepicker({
                                    format: 'yyyy-mm-dd',
                                    weekStart: 1,
                                    autoclose: true,
                                    todayBtn: 'linked',
                                    language: 'cn'
                                });

                                
                            });
</script>

</body>
</html>
